﻿@model IViewModel
@AddControls(
    
    // The Application name with the home link
    new Div("application")
    {
        new Anchor("none")
        .SetHref(Url.Action(Str.Actions.Default, Str.Controllers.Home))
        .SetTitle("Home")
        .AddControls
        (
            new Literal(Str.Common.ApplicationName, true)
        )
    },
        
    // The Logo and the home link
    new Div("logo")
    {
        new Anchor("none")
        .SetHref(Url.Action(Str.Actions.Default, Str.Controllers.Home))
        .SetTitle("Home")
        .AddControls
        (
            new Image(ResourceManager.CreateUrl("i/logo.png"))
                .SetAlt("Home")
        )
    }
)